import request from '@/utils/request'
import {SERVICE_URL} from '@/config/index.js'

//  分类列表
export function getArticleCate (data) {
	return request.get({
		url: SERVICE_URL + '/addons/rf-article/article-cate/index',
		data
	})
}

//  文章列表
export function getArticlePage (data) {
	return request.get({
		url: SERVICE_URL + '/addons/rf-article/article/index',
		data
	})
}

//  文章内容
export function getArticleView (data) {
	return request.get({
		url: SERVICE_URL + '/addons/rf-article/article/view',
		data
	})
}

//  获取轮播
export function getBannerPage (data) {
	return request.get({
		url: SERVICE_URL + '/addons/rf-article/adv/index',
		data
	})
}
//  获取策略成交历史记录
export function transactions (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/transactions',
		data
	})
}
//  获取策略平仓历史记录
export function closeList (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/close',
		data
	})
}
//获取策略历史消息
export function getmessages (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/getmessages',
		data
	})
}

